#include "ppsynopt.h"

namespace losor
{
	ppsynopt::ppsynopt( ppobject *parent ) :
		ppobject( "synopt", parent )
	{
		// TODO:
	}
	
	ppsynopt::~ppsynopt()
	{
		// TODO:
	}
	
	long ppsynopt::parser( code &_code )
	{
		unsigned char *ptr = _code.str;
		switch( *ptr )
		{
		case '{': case '}': case ';':
			++ptr;
			break;
		default:
			return -1;
		}
		m_caption = string( _code.str, 1 );
		m_line = _code.line;
		_code.str = ptr;
		return 0;
	}
}

